package com.sql.weeego.bean.base;

/**
 * UcMergemembersId entity. @author MyEclipse Persistence Tools
 */

public class UcMergemembersId implements java.io.Serializable {

	// Fields

	private Short appid;
	private String username;

	// Constructors

	/** default constructor */
	public UcMergemembersId() {
	}

	/** full constructor */
	public UcMergemembersId(Short appid, String username) {
		this.appid = appid;
		this.username = username;
	}

	// Property accessors

	public Short getAppid() {
		return this.appid;
	}

	public void setAppid(Short appid) {
		this.appid = appid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UcMergemembersId))
			return false;
		UcMergemembersId castOther = (UcMergemembersId) other;

		return ((this.getAppid() == castOther.getAppid()) || (this.getAppid() != null
				&& castOther.getAppid() != null && this.getAppid().equals(
				castOther.getAppid())))
				&& ((this.getUsername() == castOther.getUsername()) || (this
						.getUsername() != null
						&& castOther.getUsername() != null && this
						.getUsername().equals(castOther.getUsername())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAppid() == null ? 0 : this.getAppid().hashCode());
		result = 37 * result
				+ (getUsername() == null ? 0 : this.getUsername().hashCode());
		return result;
	}

}